package com.swak.devtools.test.api;

import com.swak.annotation.ApiDoc;
import com.swak.annotation.validate.Max;
import com.swak.annotation.validate.Min;
import com.swak.annotation.validate.NotNull;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class OrderBookReqDTO {

	@NotNull(msg = "商品ID不能为空")
	@ApiDoc(value = "商品的ID", example = "111111")
	private Long productId;

	@Max(value = 99, msg = "商品数量不能大于最大值{99}")
	@Min(value = 1, msg = "商品数量不能小于最小值{1}")
	@NotNull(msg = "商品数量不能为空")
	@ApiDoc(value = "商品的数量", example = "2")
	private Integer quantity;

	@ApiDoc(value = "long list", example = "2")
	private LongListData longListData;
}
